package com.micro.commonlibrary.application;

import android.app.Application;
import android.content.Context;
import android.support.multidex.MultiDex;

/**
 * application  分包
 */
public class CommonApplication extends Application {

    protected static Context mApplicationContext;


    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        MultiDex.install(this);
    }

    @Override
    public void onCreate() {
        super.onCreate();
        mApplicationContext = getApplicationContext();
    }

    public static Context getMyApplicationContext() {
        return mApplicationContext;
    }
}
